clc;
clear all;
%%%%%% on SFI network
MODPSO=[0.740275 0.740275 0.740275 0.740275 0.740275 0.740275 0.740275 0.740275 0.740275 0.740275 0.740275 0.740275 0.740275 0.740275 0.740275 0.740275 0.740275 0.740275 0.743475 0.743475 0.743475 0.743475 0.743475 0.743475 0.743475 0.743475 0.743475 0.743475 0.743475 0.743475 ]';
MOPSO_CD_r=[0.5688 0.5688 0.5773 0.5773 0.5773 0.5773 0.5773 0.5773 0.5773 0.5773 0.5773 0.5773 0.5773 0.5877 0.5877 0.5864  0.5864 0.5864 0.5864 0.5864 0.5864 0.5864 0.5864 0.5864 0.5864 0.5864 0.5864 0.5864 0.5864 0.5864]';
MOGA_net = [0.728 0.7212 0.7316	0.7322	0.7291	0.7299	0.743	0.7363	0.7354	0.7359 0.728	0.7212	0.7316	0.7322	0.7291	0.7299	0.743	0.7363	0.7354	0.7359 0.728 0.7212	0.7316	0.7322	0.7291	0.7299	0.743	0.7363	0.7354	0.7359]';
MOCD=[0.7437	0.7484	0.7487	0.7484	0.7465	0.7479	0.7487	0.7474	0.7497	0.745 0.7437	0.7484	0.7487	0.7484	0.7465	0.7479	0.7487	0.7474	0.7497	0.745 0.7437 0.7484	0.7487	0.7484	0.7465	0.7479	0.7487	0.7474	0.7497	0.745]';
MOEAD_net=[0.668288 0.668288 0.71945 0.71945 0.71945 0.71945 0.724613 0.724613 0.724613 0.724613 0.724613 0.724613 0.724613 0.724613 0.724613 0.724613 0.724613 0.724613 0.724613 0.724613 0.724613 0.724613 0.724613 0.724613 0.724613 0.724613 0.731238 0.731238 0.731238 0.731238 ]';
GA_net=[0.5737	0.5739	0.5867	0.5561	0.5741	0.5691	0.572	0.5744	0.5817	0.5734 0.5737	0.5739	0.5867	0.5561	0.5741	0.5691	0.572	0.5744	0.5817	0.5734 0.5737 0.5739	0.5867	0.5561	0.5741	0.5691	0.572	0.5744	0.5817	0.5734]';
Meme_net=[0.7097 0.6510 0.6966 0.6991 0.6892 0.6892 0.6898 0.6543 0.6543 0.6543 0.7097 0.6510 0.6966 0.6991 0.6892 0.6892 0.6898 0.6543 0.6543 0.6543 0.7097 0.6510 0.6966 0.6991 0.6892 0.6892 0.6898 0.6543 0.6543 0.6543]';
GN=[0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027 0.7027]';
X = [MODPSO MOPSO_CD_r  MOCD MOGA_net  MOEAD_net GA_net Meme_net GN];
figure(3)
boxplot(X,'labels', {'MODPSO', 'MOPSO_CD_r','MOCD','MOGA_net', 'MOEAD_net', 'GA_net','Meme_net', 'GN'}, 'medianstyle', 'target' );

%%%%%%%%%%% on netscience network
% MODPSO=[0.93633 0.941357 0.941357 0.941357 0.941357 0.941357 0.942419 0.942419 0.942419 0.942419 0.942419 0.942419 0.942419 0.942419 0.942419 0.942419 0.942419 0.942419 0.942419 0.942419 0.942419 0.944455 0.944455 0.944455 0.944455 0.944455 0.944455 0.944455 0.944455 0.945325 ]';
% MOPSO_CD_r=[0.8998	0.8998	0.9021	0.9021	0.9021	0.9021	0.9021	0.9021	0.9021	0.9021 0.8998	0.8998	0.9021	0.9021	0.9021	0.9021	0.9021	0.9021	0.9021	0.9021 0.8998	0.8998	0.9021	0.9021	0.9021	0.9021	0.9021	0.9021	0.9021	0.9021]';
% MOGA_net=[0.8788	0.8767	0.8846	0.8807	0.8786	0.8826	0.873	0.8804	0.8916	0.883 0.8788	0.8767	0.8846	0.8807	0.8786	0.8826	0.873	0.8804	0.8916	0.883 0.8788	0.8767	0.8846	0.8807	0.8786	0.8826	0.873	0.8804	0.8916	0.883]';
% MOCD=[0.8869	0.8904	0.8908	0.8915	0.8819	0.8916	0.8797	0.8886	0.8923	0.8923 0.8869	0.8904	0.8908	0.8915	0.8819	0.8916	0.8797	0.8886	0.8923	0.8923 0.8869	0.8904	0.8908	0.8915	0.8819	0.8916	0.8797	0.8886	0.8923	0.8923]';
% MOEAD_net=[0.850586 0.870645 0.877464 0.879468 0.897219 0.898205 0.898205 0.906108 0.906933 0.906933 0.914344 0.914344 0.914344 0.914344 0.914344 0.914344 0.914344 0.914344 0.914344 0.914344 0.914344 0.914344 0.914344 0.914344 0.914344 0.914344 0.914344 0.914344 0.914344 0.914344 ]';
% GA_net=[0.83	0.847	0.8493	0.8438	0.8532	0.8502	0.844	0.857	0.8581	0.8402 0.83	0.847	0.8493	0.8438	0.8532	0.8502	0.844	0.857	0.8581	0.8402 0.83	0.847	0.8493	0.8438	0.8532	0.8502	0.844	0.857	0.8581	0.8402]';
% figure (2)
% X = [MODPSO MOPSO_CD_r MOCD MOGA_net  MOEAD_net GA_net];
% boxplot(X,'labels', {'MODPSO', 'MOPSO_CD_r','MOCD','MOGA_net', 'MOEAD_net', 'GA_net'}, 'medianstyle', 'target' );



%%%%%%%%%%%% on power grid network
% MODPSO=[0.744129 0.746713 0.749925 0.749925 0.76684 0.76684 0.76684 0.777687 0.777687 0.777687 0.777687 0.777687 0.777687 0.786835 0.786835 0.786835 0.786835 0.786835 0.786835 0.786835 0.786835 0.786835 0.786835 0.786835 0.786835 0.786835 0.786835 0.786835 0.786835 0.786835 ]';
% MOPSO_CD_r=[0.6045	0.6067	0.6067	0.6067	0.6067	0.6067	0.6067	0.6067	0.6067	0.6067 0.6045	0.6067	0.6067	0.6067	0.6067	0.6067	0.6067	0.6067	0.6067	0.6067 0.6045	0.6067	0.6067	0.6067	0.6067	0.6067	0.6067	0.6067	0.6067	0.6067]';
% MOGA_net=[0.7035	0.6972	0.6939	0.695	0.6919	0.6935	0.6954	0.6905	0.6956	0.6924 0.7035	0.6972	0.6939	0.695	0.6919	0.6935	0.6954	0.6905	0.6956	0.6924 0.7035	0.6972	0.6939	0.695	0.6919	0.6935	0.6954	0.6905	0.6956	0.6924]';
% MOCD=[0.6977	0.6972	0.6942	0.6977	0.7038	0.7016	0.7016	0.7034	0.699	0.7065 0.6977	0.6972	0.6942	0.6977	0.7038	0.7016	0.7016	0.7034	0.699	0.7065 0.6977	0.6972	0.6942	0.6977	0.7038	0.7016	0.7016	0.7034	0.699	0.7065]';
% MOEAD_net=[0.645036 0.648848 0.673216 0.677377 0.677377 0.682225 0.682225 0.682225 0.682225 0.682225 0.682225 0.682225 0.685714 0.685714 0.685714 0.685714 0.685714 0.685714 0.685714 0.685714 0.685714 0.685714 0.685714 0.685714 0.685714 0.685714 0.685714 0.685714 0.688033 0.688033 ]';
% GA_net=[0.6548	0.65	0.6505	0.666	0.6555	0.6521	0.6647	0.6608	0.6595	0.6574 0.6548	0.65	0.6505	0.666	0.6555	0.6521	0.6647	0.6608	0.6595	0.6574 0.6548	0.65	0.6505	0.666	0.6555	0.6521	0.6647	0.6608	0.6595	0.6574]';
% X = [MODPSO MOPSO_CD_r  MOCD MOGA_net  MOEAD_net GA_net];
% boxplot(X,'labels', {'MODPSO', 'MOPSO_CD_r','MOCD','MOGA_net', 'MOEAD_net', 'GA_net'}, 'medianstyle', 'target' );